package com.lagou.edu.dao.repository;

import com.lagou.edu.dao.entity.AuthCode;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author bobcheng
 * @date 2020/7/12
 */
public interface AuthCodeRepository extends JpaRepository<AuthCode,Integer> {

    AuthCode findTopByEmailOrderByCreatetimeDesc(String email);
}
